<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="laundryPayment.title"/></title>
    <meta name="heading" content="<fmt:message key='laundryPaymentList.heading'/>"/>
    <meta name="menu" content="RoleAdminLaundry"/>
</head>

<table border="0">
    <tbody>
        <tr>
            <td><s:textfield key="laundryRequest.laundry.name" cssClass="text medium" disabled="true" /></td>
            <td><s:textfield key="laundryRequest.date" cssClass="text medium" disabled="true"  /></td>
            <td><s:textfield key="laundryRequest.coin.name" cssClass="text medium" disabled="true"  /></td>
            <td><s:textfield key="laundryRequest.restPrice" cssClass="text medium" disabled="true"/></td>
        </tr>
        <tr>
            <td><s:textfield key="laundryRequest.totalPrice" cssClass="text medium" disabled="true"  /></td>
            <td><s:textfield key="laundryRequest.discount" cssClass="text medium" disabled="true"  /></td>
            <td><s:textfield key="laundryRequest.failTotalPrice" cssClass="text medium" disabled="true"  /></td>
            <td><s:textfield key="laundryRequest.realPrice" cssClass="text medium" disabled="true"  /></td>
        </tr>        
    </tbody>
</table>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
           onclick="location.href='<c:url value="/editLaundryPayment.html"/>'"
           value="<fmt:message key="button.add"/>"/>
    <input type="button" onclick="location.href='<c:url value="/finalizeLaundryPayment.html"/>'"
           value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false" />

<s:set name="laundryPayments" value="laundryPayments" scope="request"/>
<display:table name="laundryPayments"  class="table" id="laundryPaymentsForm" export="true" requestURI="" pagesize="25">
    <display:column titleKey="edit" href="editLaundryPayment.html" paramId="id" paramProperty="id">
        <img src="<c:url value="/images/edit.png" />" alt="Edit" />
    </display:column>
    <display:column property="date" sortable="true" titleKey="laundryPayment.date"/>
    <display:column property="code" sortable="true" titleKey="laundryPayment.code"/>
    <display:column property="amount" sortable="true" titleKey="laundryPayment.amount"/>
</display:table>

<c:out value="${buttons}" escapeXml="false" />

<script type="text/javascript">
    highlightTableRows("laundryPaymentsForm");
</script>